import { createApp } from "vue";
import "./styles/index.scss";
import App from "./App.vue";
import { createPinia } from "pinia";
import router from "@/router/index.ts";
import "@/permission.ts";
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";

const pinia = createPinia();
const app = createApp(App);
app.use(pinia);
app.use(router);
app.use(ElementPlus, {
  locale: zhCn,
});
app.mount("#app");
// app.use(createPinia()).mount("#app");
